<?php

namespace App\Models\Wechat;

use App\Models\User\User;
use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\SoftDeletes;

class WechatMiniUser extends Model
{
	use HasDateTimeFormatter;
    use SoftDeletes;

    protected $table = 'wechat_mini_users';

    protected $guarded = [];

    public function user() : BelongsTo
    {
        return $this->belongsTo(User::class, 'user_id');
    }
}
